package eu.jk.data.dbcp;

/**
 * 数据库配置
 * 
 * @author wzz
 * 
 */

public class PoolConfig {
	/**
	 * 连接少的标准
	 */
	int LowCase = 5;

	/**
	 * 增加数目
	 */
	int increase = 5;
	
	/**
	 * 客户获取连接的尝试次数
	 */
	int ClientTryCount = 3;

	/**
	 * 数据库连接用户
	 */
	String user = null;

	/**
	 * 数据库连接密码
	 */
	String pwd = null;

	/**
	 * 驱动名称
	 */
	String driverName = null;

	/**
	 * 数据库连接URL
	 */
	String dbURL = null;

	/**
	 * nothing
	 */
	public PoolConfig(){}

	public PoolConfig(String user, String pwd, String driverName, String dbURL) {
		super();
		this.user = user;
		this.pwd = pwd;
		this.driverName = driverName;
		this.dbURL = dbURL;
	}

	public int getClientTryCount() {
		return ClientTryCount;
	}

	/**
	 * @return the dbURL
	 */
	public String getDbURL() {
		return dbURL;
	}

	/**
	 * @return the driverName
	 */
	public String getDriverName() {
		return driverName;
	}

	/**
	 * @return the lowCase
	 */
	public int getLowCase() {
		return LowCase;
	}

	/**
	 * @return the pwd
	 */
	public String getPwd() {
		return pwd;
	}

	/**
	 * @return the user
	 */
	public String getUser() {
		return user;
	}

	public void serClientTryCount(int count) {
		this.ClientTryCount = count;
	}

	/**
	 * @param dbURL
	 *            the dbURL to set
	 */
	public void setDbURL(String dbURL) {
		this.dbURL = dbURL;
	}

	/**
	 * @param driverName
	 *            the driverName to set
	 */
	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	/**
	 * @param lowCase
	 *            the lowCase to set
	 */
	public void setLowCase(int lowCase) {
		LowCase = lowCase;
	}

	/**
	 * @param pwd
	 *            the pwd to set
	 */
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	/**
	 * @param user
	 *            the user to set
	 */
	public void setUser(String user) {
		this.user = user;
	}

	public int getIncrease() {
		return increase;
	}

	public void setIncrease(int increase) {
		this.increase = increase;
	}

	public void setClientTryCount(int clientTryCount) {
		ClientTryCount = clientTryCount;
	}

}
